package com.mehdiuz.backend.role.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mehdiuz.backend.role.entity.RoleMenu;
import com.mehdiuz.backend.role.service.RoleMenuService;
import com.mehdiuz.backend.role.mapper.RoleMenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 23548
* @description 针对表【sys_role_menu(角色菜单)】的数据库操作Service实现
* @createDate 2022-10-31 19:19:02
*/
@Service
public class RoleMenuServiceImpl extends ServiceImpl<RoleMenuMapper, RoleMenu>
    implements RoleMenuService{

    @Autowired
    private RoleMenuMapper roleMenuMapper;

    @Override
    public List<RoleMenu> findByRoleIds(List<Long> roleIds) {
        return roleMenuMapper.findByRoleIds(roleIds);
    }
}




